package java19_5_9.com.huweilong.io.read_file;

import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.Arrays;

/**
 * @author 是阿秋啊
 * @date 2022/05/09 19:12
 **/
public class ReadFile1 {
    public static void main(String[] args) throws IOException {
        try(InputStream is = new FileInputStream("hello.txt")) {
            byte[] b = new byte[13];
            int n = is.read(b);
            System.out.println(n);
            System.out.println(Arrays.toString(b));
            n = is.read();
            System.out.println(n);
        }
    }
}
